class Province:
    country = 'China'
    def __init__(self, name, count):
        self.name = name
        self.count = count

    def func(self, *args, **kwargs):
        print('func')

    def __str__(self):
        return str(self.__dict__)

# 获取类的成员
print(Province.__dict__)

# 获取 对象obj1 的成员
obj1 = Province('HeBei',10000)
# print(obj1.__dict__)
print(obj1)

# 获取 对象obj2 的成员
obj2 = Province('HeNan', 3888)
# print(obj2.__dict__)
print(obj2)
